package com.bl.student.dao.model.custom;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

public class Metadata {

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel(value = "图片信息", description = "图片信息")
    public static class Image {
        @ApiModelProperty(value = "图片名称")
        private String name;
        @ApiModelProperty(value = "图片url")
        private String url;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel(value = "视频信息", description = "视频信息")
    public static class Video {
        @ApiModelProperty(value = "视频名称")
        private String name;
        @ApiModelProperty(value = "视频url")
        private String url;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel(value = "文件信息", description = "文件信息")
    public static class File {
        @ApiModelProperty(value = "名称")
        @NotNull(message = "名称不能为空")
        private String name;
        @ApiModelProperty(value = "url")
        @NotNull(message = "url不能为空")
        private String url;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @ApiModel(value = "地区信息", description = "地区信息")
    public static class Area {
        @ApiModelProperty(value = "id")
        private Integer id;
        @ApiModelProperty(value = "地区名字")
        private String name;
    }

}
